import request from '@/utils/request'

export function dataList() {
  return request({
    url: '/industry'
  })
}

export function data(page) {
  return request({
    url: `/industry?_page=${page.page}&_limit=${page.pagesize}`
  })
}
export function getData(text) {
  return request({
    url: `/industry?industry_name_like=${text}`
  })
}
export function addData(data) {
  return request({
    url: '/industry',
    method: 'post',
    data
  })
}
export function delData(id) {
  return request({
    url: `/industry/${id}`,
    method: 'delete'
  })
}
export function queryData(id) {
  return request({
    url: `/industry/${id}`
  })
}
export function patchData(data) {
  return request({
    url: `/industry/${data.id}`,
    method: 'patch',
    data
  })
}
export function getListData() {
  return request({
    url: '/shop',
    method: 'get'
  })
}

